﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Practices.EnterpriseLibrary.PolicyInjection;

using NCS.IConnect.ApplicationContexts;

using JM.JCY.BusinessFacade;
using JM.JCY.Common;
using JM.JCY.BusinessEntity;


namespace JM.JCY.Proxy
{
    public class CodeTableProxy : JCYProxyBase<ICodeTable>, ICodeTable
    {
        private ICodeTable GetInstance()
        {
            return PolicyInjection.Create<CodeTableBF, ICodeTable>();
        }

        public CodeTableDataSet.T_CodeTableDataTable GetCodeTable(int appId, string codeCategory)
        {
            return this.GetInstance().GetCodeTable(appId, codeCategory);
        }
    }
}
